package com.bing.app.controller.front.base;

import com.bing.app.executor.base.query.UserQueryService;
import com.bing.app.model.base.vo.UserRecordVO;
import com.bing.common.model.PageResult;
import com.bing.common.model.Result;
import com.bing.domain.model.base.bo.AppUserPage;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * @Description TODO
 * @Author Bing
 * @Date 2025/8/22 11:27
 */
@RestController
@RequestMapping("/front/test")
public class TestFrontController {

    @Resource
    private UserQueryService userQueryService;

    @GetMapping("/list")
    public Result<List<UserRecordVO>> list(AppUserPage req){
        return Result.success("OK",userQueryService.list(req));
    }

    @GetMapping("/page")
    public Result<PageResult<UserRecordVO>> page(AppUserPage req){
        return Result.success("OK",userQueryService.page(req));
    }
}